#{extends 'admin.html' /}
#{set title:'Administration : Edition d\'un Vehicule' /}
<article class="module width_full">
    <header><h3 class="tabs_involved">Edition d\'un Vehicule </h3>
        <ul class="tabs">
            <li><a href="@{Groups.list}">Annuler</a></li>
        </ul>
    </header>
    #{form @Vehicules.update(), id:'createForm'}
    <div class="module_content">
        <fieldset>
            <label>Type : </label>
            <input type="text" name="entity.type" value="${entity?.type}"/>
            <span class="error">${errors.forKey('entity.type')}</span>
        </fieldset>
        <fieldset>
            <label>Marque : </label>
            <input type="text" name="entity.brand" value="${entity?.brand}"/>
            <span class="error">${errors.forKey('entity.brand')}</span>
        </fieldset>
        <fieldset>
            <label>Modéle : </label>
            <input type="text" name="entity.model" value="${entity?.model}"/>
            <span class="error">${errors.forKey('entity.model')}</span>
        </fieldset>
        <fieldset>
            <label>Code : </label>
            <input type="text" name="entity.code" value="${entity?.code}"/>
            <span class="error">${errors.forKey('entity.code')}</span>
        </fieldset>
        <input type="hidden" name="entity.id" value="${entity?.id}"/>
        <footer>
            <div class="submit_link">
                <input type="submit" name="submit" value="Enregistrer" class="alt_btn"/>
            </div>
        </footer>
        #{/form}
    </div>
</article>
